<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <div class="main">
      <div class="header">
		<?php include_partial("global/topMenu", array())?>
		 <?php if($sf_user->isAuthenticated()){ ?>
		 <ul style="float:right; right: 5px" class="top_menu">
		 	<li>
		 		<div class="container_submenu">
		 			<a href="#"><span><?php echo __("Autenticado como")?></span> <span class="bold"><?php echo sfContext::getInstance()->getUser()->getGuardUser()->getUser()->getFullName()?></span></a>
		 			<ul style="">
		 				<li><?php echo link_to("Salir","sf_guard_signout")?></li>
		 			</ul>
		 		</div>
		 	</li>
		 </ul>
            
         <?php }?>

      </div>
      <div class="nav">
        <?php  if($sf_user->isAuthenticated() && sfContext::getInstance()->getResponse()->getStatusCode()!==403){?>
              <ul class="left-menu">
                <?php include_partial("global/menu", array())?>
              </ul>
          <?php }?>
      </div>
      <div class="section">
        <?php echo $sf_content ?>
      </div>      
    </div>
    <div class="footer">
      
    </div>

    <!--
    <div class="main">
      <div class="wrap">
        <div class="header">
          <div class="logo">
            <img src="/images/logo.png" alt="<?php echo __("Administrador Academia de Escritores") ?>"/>
          </div>
        </div>
        <div class="content">
          <div class="content-left">
            <div class="nav">
              <ul>
                <li><a href="<?php echo url_for('teacher/index')?>"><?php echo __("Profesores") ?></a></li>
                <li><a href="<?php echo url_for('publications/index')?>"><?php echo __("Publicaciones") ?></a></li>
                <li><a href="<?php echo url_for('sections/index')?>"><?php echo __("Secciones") ?></a></li>
                <li><a href="<?php echo url_for('mail/index')?>"><?php echo __("Correos") ?></a></li>
                <li><a href="<?php echo url_for('curses/index')?>"><?php echo __("Cursos") ?></a></li>
              </ul>
            </div>
          </div>
          <div class="content-main">
            <?php echo $sf_content ?>
          </div>          
        </div>
      </div>
      <div class="footer">
        
      </div>
    </div>-->
  </body>
</html>
